package lab02.test11;

public class Square extends Rectangle {
    double diagonal;
    double diagonal(){
        return diagonal=Math.sqrt(long1*width);
    }
    @Override
    public void printMyWay() {
        System.out.println("the long is "+long1+"width is "+width+"girth is "+girth()
                +"area is "+area()+"diagonal is "+diagonal());
    }
}
